#include "queryUtil.h"
#include "query.h"

class Query;

bool run(Query *query){

	std::string string = getQueryFromUser();
	std::transform(string.begin(), string.end(), string.begin(),
				::tolower);
	if (string == "exit") {
			std::cout << "\nBye\n";
			return false;
	}
	query->executeQuery(string);
	return true;
}
int main() {
	Query *query = new Query();
	while(run(query)){};
	return EXIT_SUCCESS;
}
